package Downloader

type Cli struct {
	args []string
}

func NewCli(args []string) (r *Cli) {
	r = new(Cli)
	r.args = args
	//for _, v := range args {
	//	fmt.Println(v)
	//}
	return
}

func (this *Cli) GetUrl() string {
	args := this.args
	if len(args) < 2 {
		//return ""
		return "http://music.baidu.com/pc/spec/download912/BaiduMusic-12345617.exe"
	} else {
		return args[1]
	}
}
